package com.beidouapp.esb.intercepter;

import org.apache.cxf.interceptor.Fault;
import org.apache.cxf.message.Message;
import org.apache.cxf.phase.AbstractPhaseInterceptor;
import org.apache.cxf.phase.Phase;

public class OutFaultInterceptor extends AbstractPhaseInterceptor<Message> { 


	public OutFaultInterceptor()
	{
		// 指定该拦截器在哪个阶段被激发  
		//这儿使用pre_stream，意思为在流关闭之前 
        super(Phase.PRE_STREAM);  
	}

	@Override
	public void handleMessage(Message message) throws Fault
	{
//		message.put("errorcode", 1);
//		message.put("message", "调用接口出现异常！");
	}
}
